package a.f;

import a.c.d;
import a.c.k;

public class cd
  implements ed
{
  public static final byte e = 0;
  public static final byte f = 1;
  public static final byte g = 2;
  public static final byte h = 4;
  public static final byte i = 8;
  private static final cd j = new cd((byte)0);
  private static final cd k = new cd((byte)1);
  private static final cd l = new cd((byte)2);
  private static final cd m = new cd((byte)4);
  private static final cd n = new cd((byte)8);
  private static final cd o = new cd((byte)0, true);
  private static final cd p = new cd((byte)4, true);
  private static final cd q = new cd((byte)8, true);
  private static final cd r = new cd((byte)1, true);
  private static final cd s = new cd((byte)2, true);
  private byte t;
  private boolean u;
  public static boolean v;
  
  public cd()
  {
    this((byte)0);
  }
  
  public cd(byte paramByte)
  {
    this.t = paramByte;
  }
  
  public cd(byte paramByte, boolean paramBoolean)
  {
    this(paramByte);
    this.u = paramBoolean;
  }
  
  public boolean a()
  {
    return this.u;
  }
  
  public byte b()
  {
    return this.t;
  }
  
  public boolean c()
  {
    if (!o.eg) {}
    return this.t == 1;
  }
  
  public boolean d()
  {
    if (!o.eg) {}
    return this.t == 2;
  }
  
  public boolean e()
  {
    if (!o.eg) {}
    return this.t == 4;
  }
  
  public boolean f()
  {
    if (!o.eg) {}
    return this.t == 8;
  }
  
  public boolean g()
  {
    if (!o.eg) {}
    return this.t == 0;
  }
  
  public static boolean a(o paramo, d paramd)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (!b(paramo, paramd)) {
        if (bool) {
          break label29;
        }
      }
    }
    label29:
    return c(paramo, paramd);
  }
  
  public static boolean b(o paramo, d paramd)
  {
    boolean bool = o.eg;
    cd localcd = d(paramo, paramd);
    if ((bool) || (localcd != null)) {
      if (!bool) {
        if (localcd.t == 0) {
          if (bool) {
            break label41;
          }
        }
      }
    }
    label41:
    return localcd.u;
  }
  
  public static boolean c(o paramo, d paramd)
  {
    boolean bool = o.eg;
    cd localcd = e(paramo, paramd);
    if ((bool) || (localcd != null)) {
      if (!bool) {
        if (localcd.t == 0) {
          if (bool) {
            break label41;
          }
        }
      }
    }
    label41:
    return localcd.u;
  }
  
  public static cd d(o paramo, d paramd)
  {
    k localk = paramo.c(ed.a);
    if (!o.eg) {
      if (localk == null) {
        return null;
      }
    }
    return (cd)localk.get(paramd);
  }
  
  public static cd e(o paramo, d paramd)
  {
    k localk = paramo.c(ed.b);
    if (!o.eg) {
      if (localk == null) {
        return null;
      }
    }
    return (cd)localk.get(paramd);
  }
  
  public static cd a(byte paramByte)
  {
    return a(paramByte, false);
  }
  
  public int hashCode()
  {
    if (!o.eg) {}
    return this.u ? 1024 + this.t : this.t;
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof cd)) {
        return false;
      }
    }
    if (!bool) {
      if (paramObject.getClass() != getClass()) {
        return false;
      }
    }
    cd localcd = (cd)paramObject;
    if (!bool)
    {
      if (localcd.u != this.u) {
        break label84;
      }
      if (bool) {
        break label81;
      }
    }
    label81:
    label84:
    return localcd.t == this.t;
  }
  
  public static cd a(byte paramByte, boolean paramBoolean)
  {
    if (paramBoolean)
    {
      switch (paramByte)
      {
      case 0: 
        return o;
      case 1: 
        return r;
      case 2: 
        return s;
      case 4: 
        return p;
      case 8: 
        return q;
      }
      return null;
    }
    switch (paramByte)
    {
    case 0: 
      return j;
    case 1: 
      return k;
    case 2: 
      return l;
    case 4: 
      return m;
    case 8: 
      return n;
    }
    return null;
  }
  
  public String toString()
  {
    if ((o.eg) || (this.t == 0))
    {
      if (this.u) {
        return "ANY_SIDE [strong] [-]";
      }
      return "ANY_SIDE [-]";
    }
    String str = null;
    switch (this.t)
    {
    case 1: 
      str = "NORTH";
      break;
    case 2: 
      str = "SOUTH";
      break;
    case 4: 
      str = "EAST";
      break;
    case 8: 
      str = "WEST";
    }
    if (this.u) {
      str = str + " [strong] ";
    }
    return str;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.cd
 * JD-Core Version:    0.7.0.1
 */